package com.blog.controller.admin;

import com.blog.response.ResponseResult;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author XiaoLin
 * @Date 2021/2/26 11:36
 */
@RestController
@RequestMapping("/admin/image")
public class ImageController {

  /**
      * @Description:上传图片
      * @author XiaoLin
      * @date 2021/2/26
      * @Param: []
      * @return com.blog.response.ResponseResult
      */
  @PostMapping
  public ResponseResult uploadImage(){
    return null;
  }

  /**
      * @Description:删除图片
      * @author XiaoLin
      * @date 2021/2/26
      * @Param: [id]
      * @return com.blog.response.ResponseResult
      */
  @DeleteMapping("/{id}")
  public ResponseResult deleteImage(@PathVariable("id") String id){
    return null;
  }

  /**
      * @Description:根据id修改图片
      * @author XiaoLin
      * @date 2021/2/26
      * @Param: [id]
      * @return com.blog.response.ResponseResult
      */
  @PutMapping("/{id}")
  public ResponseResult updateImage(@PathVariable("id") String id){
    return null;
  }
  
  /**
      * @Description:根据id查询图片
      * @author XiaoLin
      * @date 2021/2/26
      * @Param: [id]
      * @return com.blog.response.ResponseResult
      */
  @GetMapping("/{id}")
  public ResponseResult getImage(@PathVariable("id") String id){
    return null;
  }
  
  /**
      * @Description:查询所有图片
      * @author XiaoLin
      * @date 2021/2/26
      * @Param: [currentPage, pageSize]
      * @return com.blog.response.ResponseResult
      */
  @GetMapping("/list")
  public ResponseResult listImages(@RequestParam("currentPage") Integer currentPage,@RequestParam("pageSize") Integer pageSize){
    return null;
  }
}
